package items;

import interfaces.IDescribable;
import commands.Commandable;

public class ItemState extends Commandable implements IDescribable
{
  private static int nextID = 0;
  private int id;
  private String description = "";
  
  public ItemState()
  {
    this("");
  }
  
  public ItemState(String description)
  {
    this.id = nextID++;
    this.description = description;
  }
  
  public String toString()
  {
    return super.toString();
  }
  
  /**
   * @return the id
   */
  public int getId()
  {
    return id;
  }
  
  /**
   * Used for the Saving and Loading
   * @param id the id to set
   */
  public void setId(int id)
  {
    this.id = id;
  }
  
  /**
   * @return the description
   */
  public String getDescription()
  {
    return description;
  }

  /**
   * @param description the description to set
   */
  public void setDescription(String description)
  {
    this.description = description;
  }
}
